home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.0 KB | 76 lines | [TEXT/MPS ] |
- ;
- ; File: NuBusPlugin.a
- ;
- ; Contains: I/O Interfaces for NuBus "bus plugins"
- ;
- ; Version: Technology: xxx Put version info here xxx
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__NUBUSPLUGIN__') = 'UNDEFINED' THEN
- __NUBUSPLUGIN__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF &TYPE('__SLOTS__') = 'UNDEFINED' THEN
- include 'Slots.a'
- ENDIF
- IF &TYPE('__KERNEL__') = 'UNDEFINED' THEN
- include 'Kernel.a'
- ENDIF
- IF &TYPE('__INTERRUPTS__') = 'UNDEFINED' THEN
- include 'Interrupts.a'
- ENDIF
- IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
- include 'NameRegistry.a'
- ENDIF
- IF &TYPE('__NUBUS__') = 'UNDEFINED' THEN
- include 'NuBus.a'
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
-
- kNuBusMaxRegs EQU 10
- kNuBusPluginNSlotMask EQU $0000000F
- kNuBusPluginCanDisable EQU $80000000
- kNuBusPluginCanMap EQU $40000000
- kNuBusPluginVersion EQU 0
- NuBusPluginHeader RECORD 0
- version ds NumVersion ; offset: $0 (0)
- attributes ds.l 1 ; offset: $4 (4)
- reserved1 ds.l 1 ; offset: $8 (8)
- reserved2 ds.l 1 ; offset: $C (12)
- sizeof EQU * ; size: $10 (16)
- ENDR
- NuBusPluginDescriptor RECORD 0
- header ds NuBusPluginHeader ; offset: $0 (0)
- Initialize ds.l 1 ; offset: $10 (16)
- Finalize ds.l 1 ; offset: $14 (20)
- sizeof EQU * ; size: $18 (24)
- ENDR
- ;
- ; * NuBusMapSlot -
- ; *
- ; * The interface a NuBus "bus plugin" uses to communicate its
- ; * slot addressing requirements to the NuBus family manager
- ; *
- ;
- ;
- ; extern OSStatus NuBusMapSlot(const RegEntryRef *thisBus, PropertyReg *theseAddresses, ByteCount nAddresses, RegEntryRef *resultSlots)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION NuBusMapSlot
- ENDIF
-
- ENDIF
- ENDIF ; __NUBUSPLUGIN__
-
-